<?php

require_once("../data/db_connection.php");
require_once("../constants.php");

$db = new db();

$event_id = str_replace(" ","",$_POST[PARAM_EVENT_ID]);

$sql = "SELECT * FROM pTableEventInfo WHERE _id = ". $event_id;
$arr = array();
if ($result = $db->query($sql)) {
	$row = $result->fetch_assoc();	
	$arr[] = $row;
	$str = json_encode($arr);
	echo json_encode($str);
} else {
	echo null;	
}
?>